<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 <%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>


  <head>
    <meta  charset=UTF-8" />
    <base href="<%=basePath%>">
    
      <script type="text/javascript">
  	function back()
  	{
  		window.location.href="<%=basePath%>/crm/group/jugroupdataquery";
  	}
  	
  	/**
  	*省市联动
  	*/
  	function getCityid(provincename)
  	{
  		$.ajax({  
        type:'post',      
        url:'crm/group/getCity',  
        data:'provincename='+provincename,  
        cache:false,  
        dataType:'json',  
        success:function(data){ 
        	var str = "<option>请选择</option>";
        	$("#cityid").html("");
        	for(var i=0;i<data.length;i++){
        		str += "<option value='"+data[i].cityname+"'>"+data[i].cityname+"</option>";
        	}
        	$("#cityid").append(str);
        }  
    });  
  		
  	}
  	
  	/**
  	*市区联动
  	*/
  	  	function getArea(cityname)
  	{
  		$.ajax({  
        type:'post',      
        url:'crm/group/getArea',  
        data:'cityname='+cityname,  
        cache:false,  
        dataType:'json',  
        success:function(data){ 
        	var str = "<option>请选择</option>";
        	$("#area").html("");
        	for(var i=0;i<data.length;i++){
        		str += "<option value='"+data[i].areaname+"'>"+data[i].areaname+"</option>";
        	}
        	$("#area").append(str);
        }  
    });  
  		
  	}
  	
  </script>
    <title></title>
    <link rel="stylesheet" type="text/css" href="bootstrap-rs/themes/black/easyui.css">
	<link rel="stylesheet" type="text/css" href="bootstrap-rs/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="bootstrap-rs/demo.css">
	<script type="text/javascript" src="bootstrap-rs/jquery.min.js"></script>
	<script type="text/javascript" src="bootstrap-rs/jquery.easyui.min.js"></script>
    
  </head>
  <body>
  			<h2 align="center">${groupmsg.groupname}信息更改</h2>
  			
  	<form id="tb" action="crm/group/groupupdatesubmit" method="post">
  		<input type="hidden" name="groupid" value="${groupmsg.groupid}">
	  	<table border="1" width="100%">
			<tr><td colspan="4">${groupmsg.groupname }基本信息</td> </tr>
			<tr>
				<td>集团名称:<b><font color="red">*</font></b></td><td><input type="text" name="groupname" value="${groupmsg.groupname }"></td>
				<td>所在省份:<b><font color="red">*</font></b></td>
				<td>
					<!--<input type="text" name="groupprovince" value="${groupmsg.groupprovince }">-->
					<select name="groupprovince" onchange="getCityid(this.value)">
						<c:forEach items="${provincelist}" var="provincelist">
							<option value="${provincelist.provincename}" ${provincelist.provincename eq groupmsg.groupprovince?'selected':''}>${provincelist.provincename}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>所属行业:<b><font color="red">*</font></b></td><td><input type="text" name="groupindustry" value="${groupmsg.groupindustry }"></td>
				<td>所在城市:<b><font color="red">*</font></b></td>
				<td>
					<!-- <input type="text" name="groupcity" value="${groupmsg.groupcity }"> -->
					<select name="groupcity" id="cityid" onchange="getArea(this.value)">
						<c:forEach items="${citylist}" var="citylist">
							<option value="${citylist.cityname}" ${citylist.cityname eq groupmsg.groupcity?'selected':'' }>${citylist.cityname}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>集团级别:<b><font color="red">*</font></b></td>
				<td>
					<select name="grouplevel">
						<!--  <input type="text" name="grouplevel" value="${groupmsg.grouplevel }">-->
						<c:forEach items="${level}" var="level">
							<option value="${level}" ${groupmsg.grouplevel eq level?'selected':''}>${level}</option>
						</c:forEach>
					</select>
				</td>
				
				<td>所在地区:<b><font color="red">*</font></b></td>
				<td>
					<!-- <input type="text" name="grouparear" value="${groupmsg.grouparear }"> -->
					<select name="grouparear" id="area">
						<c:forEach items="${arealist}" var="a">
							<option value="${a.areaname}" ${a.areaname eq groupmsg.grouparear?'selected':'' }>${a.areaname}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>集团法人:</td><td><input type="text" name="grouplegelpeople" value="${groupmsg.grouplegelpeople }"></td>
			</tr>
			
			<tr><td colspan="4">${groupmsg.groupname }联系信息</td></tr>
			<tr>
				<td>集团邮编:</td><td><input type="text" name="grouppostcode" value="${groupmsg.grouppostcode}"></td>
				<td>集团网址:</td><td><input type="text" name="groupurl" value="${groupmsg.groupurl}"></td>
			</tr>
			<tr>
				<td>集团传真:</td><td><input type="text" name="groupfax" value="${groupmsg.groupfax}"></td>
				<td>联系电话:</td><td><input type="text" name="grouptelephone" value="${groupmsg.grouptelephone}"></td>
			</tr>
			<tr>
				<td>E-MAIL:</td><td><input type="text" name="groupemail" value="${groupmsg.groupemail}"></td>
				<td>集团地址:</td><td><input type="text" name="groupaddress" value="${groupmsg.groupaddress}"></td>
			</tr>
			
			<tr><td colspan="4">${groupmsg.groupname }商业信息</td></tr>
			<tr>
				<td>注册资本:</td><td><input type="text" name="grouptotalmoney" value="${groupmsg.grouptotalmoney}"></td>
				<td>财务状况:</td>
				<td>
					<!--<input type="text" name="groupfinancialsituation" value="${groupmsg.groupfinancialsituation}">-->
					<select name="groupfinancialsituation">
						<c:forEach items="${finanstution}" var="f">
							<option value="${f}" ${groupmsg.groupfinancialsituation eq f?'selected':'' }>${f}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>发展潜力:</td>
				<td>
					<select name="grouppotential">
						<!-- <input type="text" name="grouppotential" value="${groupmsg.grouppotential}">  -->
						<c:forEach items="${grouppotential}" var="grouppotential">
							<option value="${grouppotential}" ${groupmsg.grouppotential eq grouppotential?'selected':'' }>${grouppotential}</option>
						</c:forEach>
					</select>
				</td>
				<td>信用等级:</td>
				<td>
					<select name="groupcredit">
						<!-- <input type="text" name="groupcredit" value="${groupmsg.groupcredit}"> -->
						<c:forEach items="${groupcredit}" var="groupcredit">
							<option value="${groupcredit}" ${groupmsg.groupcredit eq groupcredit?'selected':'' }>${groupcredit}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td>集团状态:</td>
				<td>
					<select name="groupstatus">
						<!-- <input type="text" name="groupstatus" value="${groupmsg.groupstatus}"> -->
						<c:forEach items="${groupstatus}" var="groupstatus">
							<option value="${groupstatus}" ${groupmsg.groupstatus eq groupstatus?'selected':''}>${groupstatus}</option>
						</c:forEach>
					</select>	
				</td>
			</tr>
	
			<tr><td colspan="4">${groupmsg.groupname }人员信息</td></tr>		
			<tr>
				<td>人员规模:</td><td><input type="text" name="grouptotalpeople" value="${groupmsg.grouptotalpeople}"></td>
				<td>工资水平:</td><td><input type="text" name="groupsalary" value="${groupmsg.groupsalary}"></td>
			</tr>	
			<tr>
				<td>文化水平:</td>
				<td>
					<select name="groupeducation">
						<!-- <input type="text" name="groupeducation" value="${groupmsg.groupeducation}"> -->
						<c:forEach items="${groupeducation}" var="e">
							<option value="${e }" ${groupmsg.groupeducation eq e?'selected':'' }>${e }</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			
			<tr>
					
						<td colspan="4" align="center">
							<input type="submit" value="保存"></a>
							<input type="button" value="返回" onclick="back()">
						</td>
			</tr>
	  	</table>
	  </form>	
  </body>
  

  
</html>
